hackerrank java substring comparisons problem solution

join shbcf.ru